/*
 *    Copyright (c) 2018-2025, bfcloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: bfcloud
 */

import request from '@/router/axios'
//任务书创建 -新增(编辑  有id)  保存
export function saveWorkAssign(obj) {
    return request({
      url: '/appr-contract/workassigncj/saveWorkAssign',
      method: 'post',
      data: obj
    })
  }
  export function page(query) {
    return request({
      url: '/appr-contract/workassigncj/page',
      method: 'get',
      params: query
    })
  }
  // 批量删除
export function deleteBatchHtcj(query) {
  return request({
    url: '/appr-contract/workassigncj/deleteBatch',
    method: 'get',
    params: query
  })
}
  // 任务书创建详情--指标明细表查询
  export function getListByzbnd(query) {
    return request({
      url: '/appr-contract/workassignzb/getListByzbnd',
      method: 'get',
      params: query
    })
  }
  // 他评详情
  export function getListByzbndfortp(query) {
    return request({
      url: '/appr-contract/workassignzb/getListByzbndfortp',
      method: 'get',
      params: query
    })
  }
  export function getListBytp(query) {
    return request({
      url: '/appr-contract/workassigntbfq/getListBytp',
      method: 'get',
      params: query
    })
  }
  export function getListByzp(query) {
    return request({
      url: '/appr-contract/workassigntbfq/getListByzp',
      method: 'get',
      params: query
    })
  }
  //判断指标中是否填写目标值，有目标值提示是否直接汇总
export function isExistMubiao(query) {
  return request({
    url: '/appr-contract/workassigncj/isExistMubiao',
    method: 'get',
    params: query
  })
}
//判断是否有指标，有指标提示是否直接汇总，
export function confirmZbExist(query) {
  return request({
    url: '/appr-contract/workassigncj/confirmZbExist',
    method: 'get',
    params: query
  })
}
export function getStepInfo(data) {
  return request({
    url: '/appr-contract/workassigncj/getStepInfo',
    method: 'get',
    params: data
  })
}
// 合同推送拟定
export function Htongndts(query) {
  return request({
    url: '/appr-contract/workassigncj/workassignndts',
    method: 'post',
    data: query
  })
}
// 详情删除
export function deleteBatch(data) {
  return request({
    url: '/appr-contract/workassignzb/deleteBatch',
    method: 'get',
    params: data
  })
}
// 推送文本审核
export function tuisongwenben(data) {
  return request({
    url: '/appr-contract/workassigncj/tuisongwenben',
    method: 'post',
    data: data
    })
}
  // 发起签订
  export function faqiqianding(data) {
    return request({
      url: '/appr-contract/workassigncj/faqiqianding',
      method: 'post',
      data:data
    })
  }
  //下载任务书模板
export function exportWord() {
  return request({
    url: '/appr-contract/workassigncj/exportWord',
    method: 'post',
    responseType: 'blob'
  })
}
